﻿using BluetoothMachine.Enums;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BluetoothMachine.Models
{
    public class ProductionPointModel : INotifyPropertyChanged, IComparable<ProductionPointModel>
    {
        public int ID { get; set; }
        /// <summary>
        /// 功能类型
        /// </summary>
        public string FuncType { get; set; }
        /// <summary>
        /// 键名
        /// </summary>
        public string KeyName { get; set; }
        public double Ppx { get; set; }
        public double Ppy { get; set; }
        public double Ppz { get; set; }
        public int Index { get; set; }
        public string ProductModel { get; set; }
        public int Aisle { get; set; }
        public bool IsEnable { get; set; } = true;
        /// <summary>
        /// 红外数据
        /// </summary>
        public string InfraredData { get; set; }
        public event PropertyChangedEventHandler PropertyChanged;
        public int CompareTo(ProductionPointModel p)
        {
            int result = 0;
            if (Index == p.Index) result = 0;
            if (Index > p.Index) result = 1;
            if (Index < p.Index) result = -1;
            return result;
        }
    }
}
